#ifndef __XMLWRITER_H__
#define __XMLWRITER_H__


#include <xercesc/dom/DOM.hpp>
#include <xercesc/dom/DOMDocument.hpp>
#include <xercesc/dom/DOMDocumentType.hpp>
#include <xercesc/dom/DOMElement.hpp>
#include <xercesc/dom/DOMImplementation.hpp>
#include <xercesc/dom/DOMImplementationLS.hpp>
#include <xercesc/dom/DOMNodeIterator.hpp>
#include <xercesc/dom/DOMNodeList.hpp>
#include <xercesc/dom/DOMText.hpp>
#include <xercesc/util/PlatformUtils.hpp>

#include <xercesc/framework/LocalFileFormatTarget.hpp>

#include <xercesc/util/XMLUni.hpp>

/**
 *  @file
 *  Class "XMLWriter" provides the functions to write XML data.
 *  @version 0.0
 */


/**
 * XMLWriter class
 * used to save information to an XML file
 */
class XMLWriter
{
public:
	XMLWriter();
	~XMLWriter();

	void init(char* strRoot, char* strAppSettings);
	void writeToFile(const char * filePath);
	void addAttribute(const char* name, const char* value);
	

private:
	xercesc::DOMImplementation* m_impl;			// Xerces Implementation
	xercesc::DOMElement*		m_rootElem;		// Xerces Root Element
	xercesc::DOMDocument*		m_doc;			// Xerces Document
	xercesc::DOMElement*		m_prodElem;		// Xerces Element

};


#endif // __XMLWRITER_H__